package com.ice.work.moment.facade.socket.controller;


import com.honeybee.cloud.framework.common.response.ResponseEntity;
import com.ice.work.moment.facade.socket.controller.fallback.SocketHystrixFallbackFactory;
import com.ice.work.moment.facade.socket.request.PushMessageRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Description 12306 station
 * @Author DELL
 * @Create 2019-04-29
 * @Since 1.0.0
 */
@SuppressWarnings("all")
@FeignClient(value = "moment-socket-v1", fallbackFactory = SocketHystrixFallbackFactory.class)
@RequestMapping("socket")
public interface ISocketController {

    /**
     * 推送消息
     *
     * @return
     */
    @RequestMapping(name = "推送消息", value = "push-message", method = RequestMethod.POST)
    ResponseEntity<String> pushMessage(@RequestBody @Validated PushMessageRequest request);

}
